package cate.common.table.item.favorability.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import cate.common.util.random.RWItem;

public class FavorabilityAttrRow extends ERow implements RWItem {
    public int attr;

    private double weight;

    public double addValue;

    @Override
    public void parse(XSSFRowWrap xrw) {
        this.id = xrw.getInteger("id");
        this.attr = xrw.getInteger("属性");
        this.weight = xrw.getDouble("权重", 0.0);
        this.addValue = xrw.getDouble("增加值", 0.0);
    }

    @Override
    public double getWeight() {
        return weight;
    }
}
